package com.micro.ai.agents.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 智能体-微调模型关联实体类
 * 
 * @author micro-ai
 * @since 0.0.1
 */
@Data
@TableName("agent_fine_tuned_model_mappings")
@Schema(description = "智能体-微调模型关联信息")
public class AgentFineTunedModelMapping implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "关联ID", example = "mapping_123456789")
    private String id;

    @Schema(description = "租户ID", example = "tenant_001")
    private String tenantId;

    @Schema(description = "智能体ID", example = "agent_123")
    private String agentId;

    @Schema(description = "微调模型ID", example = "model_123")
    private String fineTunedModelId;

    @Schema(description = "优先级", example = "1")
    private Integer priority;

    @Schema(description = "是否激活", example = "true")
    private Boolean isActive;

    @Schema(description = "总请求数", example = "1000")
    private Integer totalRequests;

    @Schema(description = "成功请求数", example = "950")
    private Integer successRequests;

    @Schema(description = "平均响应时间（毫秒）", example = "500")
    private Integer avgResponseTimeMs;

    @Schema(description = "创建人ID", example = "user_001")
    private String createdBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}

